<div>
    <label class="span-3">文件名称</label>
    <input class="text span-4" name="doc_name[]" 
           value="<?php if (isset($document['doc_name'])) echo $document['doc_name']; ?>" />
    <label class="span-2">附件</label>
    <input class="text span-5" name="doc_original_name[]" readonly="readonly" 
           value="<?php if (isset($document['doc_original_name'])) echo $document['doc_original_name']; ?>" />
    <input type="hidden" name="doc_path[]"
           value="<?php if (isset($document['doc_path'])) echo $document['doc_path']; ?>" />
    <?php if (!empty($document['doc_path'])): ?>
    <button class="image-link" href="<?php echo base_url(decode_upload_path($document['doc_path'])); ?>">查看图片</button>    
    <?php endif; ?>
    
    <button type="button" class="remove-document">删除</button>
    <div class="clear"></div>
</div>